#include <stdio.h>
#include <stdlib.h>
#include <string.h>

void leak_suppress(void)
{
	void *ptr = NULL;
	ptr = malloc(1024);
	ptr = malloc(1024);
	ptr = malloc(1024);
	ptr = malloc(1024);
	ptr = malloc(1024);
}

int main()
{
	int i = 0;
	void *aa[100] = {};
	//for (i=0; i<5; i++)	{
		//aa[i] = malloc(1);
		//printf("malloc 1 byte, NO.%d:%p\n", i, aa[i]);
		//memset(aa[i], 0, 1);
	//}
	aa[0] = malloc(1);
	aa[2] = malloc(1);
	aa[4] = malloc(1);
	aa[6] = malloc(1);
	aa[8] = malloc(1000);

/*
	memset(aa[0], 0, 1);
	memset(aa[1], 0, 1);
	memset(aa[2], 0, 1);
	memset(aa[3], 0, 1);
	memset(aa[4], 0, 1);
*/

	printf("end malloc\n");
	leak_suppress();
	printf("end leak_suppress\n");
	return 0;
}
